//
//  FJBaseViewController.swift
//  FruitJuice
//
//  Created by Rae on 2023/12/15.
//

import UIKit

@objc protocol FruitJuiceBaseViewControllerProtocol {
    func controller_identification() -> String
    func controller_backImage() -> UIImage?
}

extension UIViewController: FruitJuiceBaseViewControllerProtocol {
    
    func controller_identification() -> String {
        return NSStringFromClass(self.classForCoder)
    }
    
    func controller_backImage() -> UIImage? {
        UIImage(named: "")
    }
    
}

class FJBaseViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        navigation.bar.isHidden = true
        view.backgroundColor = .white
    }
     
    func imageToBase64String(image:UIImage)->Data?{
        let imageData = image.resetImgSize()
        return imageData
    }
}
